import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
  state: {
    newData: {
      use: '',
      matter: '',
      name: ''
    }
  },
  actions: {
    getData: (contex, nd) => {
      contex.commit('setData', nd)
    }
  },
  mutations: {
    setData: (state, nd) => {
      state.newData = nd
    }
  }
})
